package stringexercise;

public class CharAtDemo {
    public static void main(String[] args) {
        String str = "thinking in java";
        char c = str.charAt(10);
        System.out.println(c);//n
        char a = str.charAt(15);
        System.out.println(a);//a
        char b = str.charAt(16);
        System.out.println(b);//越界
    }
}
